<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //   var num = 0;
      //   while (num < 5) {
      //     console.log("edg牛逼");
      //     num++;
      //   }

      //   var end = 0;
      //   var num = 1;
      //   while (num < 101) {
      //     console.log(num);
      //     end += num;
      //     num++;
      //   }
      //   console.log(end);

      var num = 1;
      var end = 0;
      var end1 = 0;
      while (num < 101) {
        if (num % 7 == 0) {
          console.log(num);
          end += num;
        }
        if (num % 2 == 0) {
          console.log(num);
          end1 += num;
        }
        num++;
      }
      console.log(end);
      console.log(end1);
    </script>
  </body>
</html>
